import { RouteObject } from 'react-router-dom'
import Home from '@/views/home/Home.tsx'
import About from '@/views/about/About.tsx'
import Dashboard from '@/views/dashboard/Dashboard.tsx'
import systemManagerRoutes from './System-manager' // 引入 System-manager 路由
import Login from '@/views/login/Login.tsx'

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Login />,
  },
  {
    path: '/Home',
    element: <Home />,
  },
  {
    path: '/about',
    element: <About />,
  },
  {
    path: '/dashboard',
    element: <Dashboard />,
  },
  {
    path: '/login',
    element: <Login />,
  },
  ...systemManagerRoutes, // 合并 System-manager 路由
  {
    path: '*', // 通配符路由，匹配所有未定义的路径
    element: <div>404 - 页面未找到</div>,
  }
]

export default routes